import { Input } from 'antd'

import type { CSSProperties } from 'react'
import Item  from './item'


import type { InputProps, FormItemProps } from 'antd'
type FormType = 'view' | 'edit'
interface Props {
  __namespace: string
  __primary: string
  __type: FormType
  __bind: string
  __name: string
}

interface PropsEditComponent extends Props {
  style?: CSSProperties
  itemProps?: FormItemProps
}

interface IProps extends InputProps, PropsEditComponent {}



const Index = (props: IProps) => {
	const { __bind, __name, itemProps, ...rest_props } = props

	return (
		<Item {...itemProps} {...{ __bind, __name }}>
			<Input placeholder={`'请输入' }${__name}`} {...rest_props}></Input>
		</Item>
	)
}
export default Index